//package com.example.xiongmao.controller;
//
//import com.example.xiongmao.entity.DTO.CommonStatus;
//import com.example.xiongmao.entity.DTO.admin.addAdminDTO;
//import com.example.xiongmao.entity.DTO.admin.adminChargeDTO;
//import com.example.xiongmao.entity.DTO.shop.shopChargeDTO;
//import com.example.xiongmao.entity.PageResult;
//import com.example.xiongmao.entity.Result;
//import com.example.xiongmao.entity.VO.admin.adminChargeVO;
//import com.example.xiongmao.service.ShopChargeService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.*;
//
//import java.util.List;
//
//@RestController
//@RequestMapping("/shop")
//public class shopChargeController {
//
//    @Autowired
//    private ShopChargeService shopChargeService;
//
//
//    // 分页条件查询
//    @GetMapping
//    public Result<PageResult> list(shopChargeDTO shopchargeDTO){
//        PageResult pageResult = shopChargeService.list(shopchargeDTO);
//        System.out.println("page:"+shopchargeDTO.getPage()+"pageSize"+shopchargeDTO.getPageSize());
//        return Result.success(pageResult);
//    }
//
////    // 新增用户前查询店长
////    @GetMapping("/shopManager")
////    public Result<List> getByShopManagerList(@RequestParam String shopManagerName){
////        return Result.success();
////    }
//
//    // 新增用户
//    @PostMapping
//    public Result addAdmin(@RequestBody addAdminDTO addAdmin){
//        shopChargeService.add(addAdmin);
//        return Result.success();
//    }
//
//    // 编辑回显
//    @GetMapping("/{id}")
//    public Result getByUserId(@PathVariable Integer id){
//        adminChargeVO admins = shopChargeService.getbyId(id);
//        return Result.success(admins);
//    }
//
//    // 编辑用户信息
//    @PutMapping
//    public Result updateAdmin(@RequestBody addAdminDTO addAdmin){
//        System.out.println("前端传回来的："+addAdmin);
//        shopChargeService.updateShop(addAdmin);
//        return Result.success();
//    }
//
//    // （批量）删除用户信息
//    @DeleteMapping
//    public Result deleteAdmin(@RequestParam List<Integer> ids){
//        System.out.println("当前要删除的ids:"+ids);
//        shopChargeService.deleteBatch(ids);
//        return Result.success();
//    }
//
//    // 禁用用户状态
//    @PutMapping("/status")
//    public Result AdminStatusChange(@RequestBody CommonStatus adminStatus){
//        System.out.println("当前要修改状态的ids:"+adminStatus);
//        shopChargeService.ShopStatusChange(adminStatus);
//        return Result.success();
//    }
//}
